<include file="Common/header" />
<!-- 导航栏 -->
{$bread_crumb}
<!-- 导航栏 -->
<div class="page-container">
    <!-- 搜索 -->
    <div class="text-c">
        <form action="{:U(CONTROLLER_NAME.'/index')}" method="get">
            <input type="text" class="input-text" style="width:150px" placeholder="帐号" name="username" value="{$username}">
            <button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i>搜索</button>
        </form>
    </div>
    <!-- 操作 -->
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <!-- <a href="javascript:;" onclick="del_select()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  -->
            <!-- <a class="btn btn-primary radius" onclick="add('添加','{:U(CONTROLLER_NAME.'/add')}')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加</a> -->
        </span> 
        <span class="r">共有数据：<strong>{$count}</strong> 条</span> 
    </div>
    <div class="mt-20 dataTables_wrapper">
    <table class="table table-border table-bordered table-hover table-bg table-sort">
        <thead>
            <tr class="text-c">
                <th>编号</th>
                <th>用户</th>
                <th>技师</th>
                <th>服务项目</th>
                <th>价格</th>
                <th>订单号</th>
                <th>微信流水号</th>
                <th>订单状态</th>
                <th>订单时间</th>
                <!-- <th>操作</th> -->
            </tr>
        </thead>
        <tbody>
            <foreach name="datas" item="item">
                <tr class="text-c">
                    <td>{$item.id}</td>
                    <td>{$item.username}</td>
                    <td>{$item.name}</td>
                    <td>{$item.service}</td>
                    <td>{$item.price}</td>
                    <td>{$item.order_no}</td>
                    <td>{$item.transation_id}</td>
                    <td>{$item.status}</td>
                    <td>{$item.time}</td>
                    <td class="td-manage">
                        <!-- <a style="text-decoration:none" class="ml-5" onClick="update('编辑','{:U(CONTROLLER_NAME.'/update')}','{$item.id}')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> -->

                        <!-- <a style="text-decoration:none" class="ml-5" onClick="del(this,'{$item.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a> -->
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    {$pages}
</div>
<include file="Common/footer" />
<script type="text/javascript">
/*排序*/
$(function(){
    $('.table-sort').dataTable({
        "aaSorting": [[ 0, "asc" ]], // 默认排序
        "aoColumnDefs": [
          {"orderable":false,"aTargets":[0, 5]}// 制定列不参与排序
        ]
    });
});
/*编辑*/
function update(title,url,id){
    var index = layer.open({
        type: 2,
        title: title,
        content: url + '?id=' + id,
    });
    layer.full(index);
}
</script> 